Skip to content

speed up javascript generator#314

Open
tocque wants to merge 1 commit intohanabi1224:mainfrom
tocque:speed-up-generator
Open

speed up javascript generator#314
tocque wants to merge 1 commit intohanabi1224:mainfrom
tocque:speed-up-generator

Conversation

@tocque
Copy link
Copy Markdown
Contributor

@tocque tocque commented Oct 29, 2022

Await is not necessary in generator.

@tocque tocque changed the title speed up generator speed up javascript generator Oct 29, 2022
@hanabi1224
Copy link
Copy Markdown
Owner

This is coroutine benchmark, usage of generator aka simi-coroutine is not allowed

@lohaswinner
Copy link
Copy Markdown

lohaswinner commented Nov 29, 2022

This is coroutine benchmark, usage of generator aka simi-coroutine is not allowed

But originally coroutine execution should not return at the end of body. So usage of yield value is the feature of generator.
AsyncGenerator without await in the body doesn't have any difference from basic generator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants